package com.hl.service;

import com.hl.mapper.DengluMapper;
import com.hl.pojo.Users;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DengluServiceImpl implements DengluService{
    @Autowired
    private DengluMapper dengluMapper;
    @Override
    public GeneralResult denglu(Users users) {
        Users users1 = dengluMapper.denglu(users);
        if (users1 == null) {
            return GeneralResult.message(204,"没有该用户",null);
        }else {
            return GeneralResult.message(200,"登陆成功",users1);
        }
    }
}
